<%@ page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page import="com.gmail.avereshchaga.web.controller.DivisionController"%>
<%@ page import="static com.gmail.avereshchaga.tools.Command.DIVISION_UPDATE_COMMAND"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <title>Edit division</title>
    </head>
    <body>
        <table class="loctable">
            <tr><td valign="top">
		<%@ include file="login.jsp" %> 
        <form:form commandName="<%=DIVISION_UPDATE_COMMAND %>" method="post">
        <table>
            <tr>
                <td><form:hidden path="id" /></td>
            </tr>
            <tr>
                <td><spring:message code="label.name"/>:</td>
                <td><form:input path="name" /></td>
                <td style="color:red;"><form:errors path="name" /></td>
            </tr>
        </table>
        <br />
        <input type="submit" value="<spring:message code="label.save"/>" />
        <input onclick="history.back(-1)" value="<spring:message code="label.cancel"/>" type="button">
        </form:form>
        </td></tr>
        </table>
    </body>
</html>